package com.xian.im.modules.command;


import com.xian.im.common.proto.MsgRequest;

/**
 * @program: xian-im-server
 * @description:
 * @author: liru.xian
 * @create: 2021-01-26 21:17
 **/
public interface Command {

    /**
     * 执行
     * @param request
     * @param ctxId
     */
    void exec(MsgRequest request, String ctxId);

    /**
     *  获取命令
     * @return
     */
    Integer getCmd();


}
